package org.shopen.ai.puremvc.model.settings
{
	import mx.collections.ArrayCollection;
	
	public class PerformModeType
	{
		public static const STEPS : PerformModeType 	= new PerformModeType("Step-by-step", 0);
		public static const SLIDESHOW : PerformModeType = new PerformModeType("Slide Show", 1);
		public static const INSTANT : PerformModeType 	= new PerformModeType("Instant Results", 2);
		
		protected var _name : String = "undefined";
		public function get name() : String
		{
			return _name;
		}
		
		protected var _index : int = -1;
		public function get index() : int
		{
			return _index;
		}
		
		public function PerformModeType(name : String = "undefined", index : int = -1)
		{
			this._name = name;
			this._index = index;
		}
		
		public static function getAllModes() : ArrayCollection
		{
			var result : ArrayCollection = new ArrayCollection();
			result.addItem(PerformModeType.STEPS);
			result.addItem(PerformModeType.SLIDESHOW);
			result.addItem(PerformModeType.INSTANT);
			return result;
		}
	}
}